.class public Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;
.super Landroid/view/ViewGroup;
.source "ZMSlidingDrawer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$SlidingHandler;,
        Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$DrawerToggler;,
        Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;,
        Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerCloseListener;,
        Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerOpenListener;
    }
.end annotation


# static fields
.field private static final ANIMATION_FRAME_DURATION:I = 0x10

.field private static final COLLAPSED_FULL_CLOSED:I = -0x2712

.field private static final EXPANDED_FULL_OPEN:I = -0x2711

.field private static final MAXIMUM_ACCELERATION:F = 2000.0f

.field private static final MAXIMUM_MAJOR_VELOCITY:F = 200.0f

.field private static final MAXIMUM_MINOR_VELOCITY:F = 150.0f

.field private static final MAXIMUM_TAP_VELOCITY:F = 100.0f

.field private static final MSG_ANIMATE:I = 0x3e8

.field public static final ORIENTATION_BOTTOM_UP:I = 0x2

.field public static final ORIENTATION_HORIZONTAL:I = 0x0

.field public static final ORIENTATION_LEFT_TO_RIGHT:I = 0x4

.field public static final ORIENTATION_RIGHT_TO_LEFT:I = 0x8

.field public static final ORIENTATION_TOP_DOWN:I = 0x1

.field public static final ORIENTATION_VERTICAL:I = 0x1

.field private static final TAP_THRESHOLD:I = 0x6

.field private static final VELOCITY_UNITS:I = 0x3e8


# instance fields
.field private mAllowSingleTap:Z

.field private mAnimateOnClick:Z

.field private mAnimatedAcceleration:F

.field private mAnimatedVelocity:F

.field private mAnimating:Z

.field private mAnimationLastTime:J

.field private mAnimationPosition:F

.field private mCollapsedOffset:I

.field private mContent:Landroid/view/View;

.field private final mContentId:I

.field private mCurrentAnimationTime:J

.field private mExpanded:Z

.field private mExpandedOffset:I

.field private final mFrame:Landroid/graphics/Rect;

.field private mHandle:Landroid/view/View;

.field private mHandleHeight:I

.field private final mHandleId:I

.field private mHandleWidth:I

.field private final mHandler:Landroid/os/Handler;

.field private final mInvalidate:Landroid/graphics/Rect;

.field private mLocked:Z

.field private final mMaximumAcceleration:I

.field private final mMaximumMajorVelocity:I

.field private final mMaximumMinorVelocity:I

.field private final mMaximumTapVelocity:I

.field private mOnDrawerCloseListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerCloseListener;

.field private mOnDrawerOpenListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerOpenListener;

.field private mOnDrawerScrollListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;

.field private mOrientation:I

.field private final mTapThreshold:I

.field private mTouchDelta:I

.field private mTracking:Z

.field private mVelocityTracker:Landroid/view/VelocityTracker;

.field private final mVelocityUnits:I

.field private mVertical:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 191
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 192
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 14
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    const/4 v9, 0x0

    const/4 v6, 0x1

    const/4 v5, 0x0

    const/high16 v8, 0x3f000000

    .line 205
    invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 109
    new-instance v4, Landroid/graphics/Rect;

    invoke-direct {v4}, Landroid/graphics/Rect;-><init>()V

    iput-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mFrame:Landroid/graphics/Rect;

    .line 110
    new-instance v4, Landroid/graphics/Rect;

    invoke-direct {v4}, Landroid/graphics/Rect;-><init>()V

    iput-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mInvalidate:Landroid/graphics/Rect;

    .line 129
    new-instance v4, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$SlidingHandler;

    const/4 v7, 0x0

    invoke-direct {v4, p0, v7}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$SlidingHandler;-><init>(Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$1;)V

    iput-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandler:Landroid/os/Handler;

    .line 206
    sget-object v4, Lcom/zuimeia/ui/R$styleable;->SlidingDrawer:[I

    invoke-virtual {p1, p2, v4, p3, v5}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 208
    .local v0, "a":Landroid/content/res/TypedArray;
    sget v4, Lcom/zuimeia/ui/R$styleable;->SlidingDrawer_orientation_drawer:I

    invoke-virtual {v0, v4, v6}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    .line 209
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v7, 0x2

    if-eq v4, v7, :cond_35

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    if-ne v4, v6, :cond_6a

    :cond_35
    move v4, v6

    :goto_36
    iput-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    .line 211
    sget v4, Lcom/zuimeia/ui/R$styleable;->SlidingDrawer_collapsedOffset:I

    invoke-virtual {v0, v4, v9}, Landroid/content/res/TypedArray;->getDimension(IF)F

    move-result v4

    float-to-int v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    .line 212
    sget v4, Lcom/zuimeia/ui/R$styleable;->SlidingDrawer_expandedOffset:I

    invoke-virtual {v0, v4, v9}, Landroid/content/res/TypedArray;->getDimension(IF)F

    move-result v4

    float-to-int v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    .line 213
    sget v4, Lcom/zuimeia/ui/R$styleable;->SlidingDrawer_allowSingleTap:I

    invoke-virtual {v0, v4, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v4

    iput-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAllowSingleTap:Z

    .line 214
    sget v4, Lcom/zuimeia/ui/R$styleable;->SlidingDrawer_animateOnClick:I

    invoke-virtual {v0, v4, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v4

    iput-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimateOnClick:Z

    .line 216
    sget v4, Lcom/zuimeia/ui/R$styleable;->SlidingDrawer_handle:I

    invoke-virtual {v0, v4, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v3

    .line 217
    .local v3, "handleId":I
    if-nez v3, :cond_6c

    .line 218
    new-instance v4, Ljava/lang/IllegalArgumentException;

    const-string v5, "The handle attribute is required and must refer to a valid child."

    invoke-direct {v4, v5}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v4

    .end local v3    # "handleId":I
    :cond_6a
    move v4, v5

    .line 209
    goto :goto_36

    .line 221
    .restart local v3    # "handleId":I
    :cond_6c
    sget v4, Lcom/zuimeia/ui/R$styleable;->SlidingDrawer_content:I

    invoke-virtual {v0, v4, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v1

    .line 222
    .local v1, "contentId":I
    if-nez v1, :cond_7c

    .line 223
    new-instance v4, Ljava/lang/IllegalArgumentException;

    const-string v5, "The content attribute is required and must refer to a valid child."

    invoke-direct {v4, v5}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v4

    .line 226
    :cond_7c
    if-ne v3, v1, :cond_86

    .line 227
    new-instance v4, Ljava/lang/IllegalArgumentException;

    const-string v5, "The content and handle attributes must refer to different children."

    invoke-direct {v4, v5}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v4

    .line 230
    :cond_86
    iput v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleId:I

    .line 231
    iput v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContentId:I

    .line 233
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v4

    iget v2, v4, Landroid/util/DisplayMetrics;->density:F

    .line 234
    .local v2, "density":F
    const/high16 v4, 0x40c00000

    mul-float/2addr v4, v2

    add-float/2addr v4, v8

    float-to-int v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTapThreshold:I

    .line 235
    const/high16 v4, 0x42c80000

    mul-float/2addr v4, v2

    add-float/2addr v4, v8

    float-to-int v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumTapVelocity:I

    .line 236
    const/high16 v4, 0x43160000

    mul-float/2addr v4, v2

    add-float/2addr v4, v8

    float-to-int v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMinorVelocity:I

    .line 237
    const/high16 v4, 0x43480000

    mul-float/2addr v4, v2

    add-float/2addr v4, v8

    float-to-int v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    .line 238
    const/high16 v4, 0x44fa0000

    mul-float/2addr v4, v2

    add-float/2addr v4, v8

    float-to-int v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    .line 239
    const/high16 v4, 0x447a0000

    mul-float/2addr v4, v2

    add-float/2addr v4, v8

    float-to-int v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVelocityUnits:I

    .line 241
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 243
    invoke-virtual {p0, v5}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->setAlwaysDrawnWithCacheEnabled(Z)V

    .line 244
    return-void
.end method

.method static synthetic access$200(Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;

    .prologue
    .line 82
    iget-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mLocked:Z

    return v0
.end method

.method static synthetic access$300(Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;)Z
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;

    .prologue
    .line 82
    iget-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimateOnClick:Z

    return v0
.end method

.method static synthetic access$400(Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;)V
    .registers 1
    .param p0, "x0"    # Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;

    .prologue
    .line 82
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->doAnimation()V

    return-void
.end method

.method private animateClose(I)V
    .registers 4
    .param p1, "position"    # I

    .prologue
    const/4 v1, 0x1

    .line 548
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->prepareTracking(I)V

    .line 549
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    packed-switch v0, :pswitch_data_28

    .line 567
    :goto_9
    :pswitch_9
    return-void

    .line 551
    :pswitch_a
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    neg-int v0, v0

    int-to-float v0, v0

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto :goto_9

    .line 555
    :pswitch_12
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    int-to-float v0, v0

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto :goto_9

    .line 559
    :pswitch_19
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    neg-int v0, v0

    int-to-float v0, v0

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto :goto_9

    .line 563
    :pswitch_21
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    int-to-float v0, v0

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto :goto_9

    .line 549
    :pswitch_data_28
    .packed-switch 0x1
        :pswitch_a
        :pswitch_12
        :pswitch_9
        :pswitch_19
        :pswitch_9
        :pswitch_9
        :pswitch_9
        :pswitch_21
    .end packed-switch
.end method

.method private animateOpen(I)V
    .registers 4
    .param p1, "position"    # I

    .prologue
    const/4 v1, 0x1

    .line 570
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->prepareTracking(I)V

    .line 571
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    packed-switch v0, :pswitch_data_28

    .line 589
    :goto_9
    :pswitch_9
    return-void

    .line 573
    :pswitch_a
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    int-to-float v0, v0

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto :goto_9

    .line 577
    :pswitch_11
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    neg-int v0, v0

    int-to-float v0, v0

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto :goto_9

    .line 581
    :pswitch_19
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    int-to-float v0, v0

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto :goto_9

    .line 585
    :pswitch_20
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    neg-int v0, v0

    int-to-float v0, v0

    invoke-direct {p0, p1, v0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto :goto_9

    .line 571
    :pswitch_data_28
    .packed-switch 0x1
        :pswitch_a
        :pswitch_11
        :pswitch_9
        :pswitch_19
        :pswitch_9
        :pswitch_9
        :pswitch_9
        :pswitch_20
    .end packed-switch
.end method

.method private closeDrawer()V
    .registers 3

    .prologue
    .line 1061
    const/16 v0, -0x2712

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->moveHandle(I)V

    .line 1062
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 1063
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->destroyDrawingCache()V

    .line 1065
    iget-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-nez v0, :cond_16

    .line 1073
    :cond_15
    :goto_15
    return-void

    .line 1069
    :cond_16
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    .line 1070
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerCloseListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerCloseListener;

    if-eqz v0, :cond_15

    .line 1071
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerCloseListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerCloseListener;

    invoke-interface {v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerCloseListener;->onDrawerClosed()V

    goto :goto_15
.end method

.method private doAnimation()V
    .registers 8

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 885
    const/4 v1, 0x0

    .line 886
    .local v1, "willOpen":Z
    const/4 v0, 0x0

    .line 888
    .local v0, "willClose":Z
    iget-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    if-eqz v4, :cond_17

    .line 889
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->incrementAnimation()V

    .line 890
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    packed-switch v4, :pswitch_data_c2

    .line 913
    :goto_10
    :pswitch_10
    if-eqz v1, :cond_9b

    .line 914
    iput-boolean v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    .line 915
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->openDrawer()V

    .line 925
    :cond_17
    :goto_17
    return-void

    .line 892
    :pswitch_18
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getHeight()I

    move-result v5

    iget v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int/2addr v5, v6

    add-int/lit8 v5, v5, -0x1

    int-to-float v5, v5

    cmpl-float v4, v4, v5

    if-ltz v4, :cond_35

    move v1, v2

    .line 893
    :goto_29
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    neg-int v5, v5

    int-to-float v5, v5

    cmpg-float v4, v4, v5

    if-gez v4, :cond_37

    move v0, v2

    .line 894
    :goto_34
    goto :goto_10

    :cond_35
    move v1, v3

    .line 892
    goto :goto_29

    :cond_37
    move v0, v3

    .line 893
    goto :goto_34

    .line 897
    :pswitch_39
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    int-to-float v5, v5

    cmpg-float v4, v4, v5

    if-gez v4, :cond_55

    move v1, v2

    .line 898
    :goto_43
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getHeight()I

    move-result v5

    iget v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    add-int/2addr v5, v6

    add-int/lit8 v5, v5, -0x1

    int-to-float v5, v5

    cmpl-float v4, v4, v5

    if-ltz v4, :cond_57

    move v0, v2

    .line 899
    :goto_54
    goto :goto_10

    :cond_55
    move v1, v3

    .line 897
    goto :goto_43

    :cond_57
    move v0, v3

    .line 898
    goto :goto_54

    .line 902
    :pswitch_59
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getWidth()I

    move-result v5

    iget v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int/2addr v5, v6

    add-int/lit8 v5, v5, -0x1

    int-to-float v5, v5

    cmpl-float v4, v4, v5

    if-ltz v4, :cond_76

    move v1, v2

    .line 903
    :goto_6a
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    neg-int v5, v5

    int-to-float v5, v5

    cmpg-float v4, v4, v5

    if-gez v4, :cond_78

    move v0, v2

    .line 904
    :goto_75
    goto :goto_10

    :cond_76
    move v1, v3

    .line 902
    goto :goto_6a

    :cond_78
    move v0, v3

    .line 903
    goto :goto_75

    .line 907
    :pswitch_7a
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    int-to-float v5, v5

    cmpg-float v4, v4, v5

    if-gez v4, :cond_97

    move v1, v2

    .line 908
    :goto_84
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getWidth()I

    move-result v5

    iget v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    add-int/2addr v5, v6

    add-int/lit8 v5, v5, -0x1

    int-to-float v5, v5

    cmpl-float v4, v4, v5

    if-ltz v4, :cond_99

    move v0, v2

    :goto_95
    goto/16 :goto_10

    :cond_97
    move v1, v3

    .line 907
    goto :goto_84

    :cond_99
    move v0, v3

    .line 908
    goto :goto_95

    .line 916
    :cond_9b
    if-eqz v0, :cond_a4

    .line 917
    iput-boolean v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    .line 918
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->closeDrawer()V

    goto/16 :goto_17

    .line 920
    :cond_a4
    iget v2, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    float-to-int v2, v2

    invoke-direct {p0, v2}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->moveHandle(I)V

    .line 921
    iget-wide v2, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCurrentAnimationTime:J

    const-wide/16 v4, 0x10

    add-long/2addr v2, v4

    iput-wide v2, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCurrentAnimationTime:J

    .line 922
    iget-object v2, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandler:Landroid/os/Handler;

    iget-object v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandler:Landroid/os/Handler;

    const/16 v4, 0x3e8

    invoke-virtual {v3, v4}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v3

    iget-wide v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCurrentAnimationTime:J

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->sendMessageAtTime(Landroid/os/Message;J)Z

    goto/16 :goto_17

    .line 890
    :pswitch_data_c2
    .packed-switch 0x1
        :pswitch_18
        :pswitch_39
        :pswitch_10
        :pswitch_59
        :pswitch_10
        :pswitch_10
        :pswitch_10
        :pswitch_7a
    .end packed-switch
.end method

.method private incrementAnimation()V
    .registers 9

    .prologue
    .line 928
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v2

    .line 929
    .local v2, "now":J
    iget-wide v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationLastTime:J

    sub-long v6, v2, v6

    long-to-float v6, v6

    const/high16 v7, 0x447a0000

    div-float v4, v6, v7

    .line 930
    .local v4, "t":F
    iget v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    .line 931
    .local v1, "position":F
    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    .line 932
    .local v5, "v":F
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedAcceleration:F

    .line 933
    .local v0, "a":F
    mul-float v6, v5, v4

    add-float/2addr v6, v1

    const/high16 v7, 0x3f000000

    mul-float/2addr v7, v0

    mul-float/2addr v7, v4

    mul-float/2addr v7, v4

    add-float/2addr v6, v7

    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    .line 934
    mul-float v6, v0, v4

    add-float/2addr v6, v5

    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    .line 935
    iput-wide v2, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationLastTime:J

    .line 936
    return-void
.end method

.method private moveHandle(I)V
    .registers 19
    .param p1, "position"    # I

    .prologue
    .line 723
    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    .line 725
    .local v4, "handle":Landroid/view/View;
    move-object/from16 v0, p0

    iget-boolean v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v12, :cond_d6

    .line 726
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x1

    if-ne v12, v13, :cond_51

    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    neg-int v12, v12

    :goto_16
    invoke-virtual {v4}, Landroid/view/View;->getTop()I

    move-result v13

    sub-int v11, v12, v13

    .line 727
    .local v11, "upperHalfOffset":I
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x1

    if-ne v12, v13, :cond_56

    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    neg-int v12, v12

    :goto_28
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getBottom()I

    move-result v13

    add-int/2addr v12, v13

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getTop()I

    move-result v13

    sub-int/2addr v12, v13

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleHeight:I

    sub-int/2addr v12, v13

    .line 728
    invoke-virtual {v4}, Landroid/view/View;->getTop()I

    move-result v13

    sub-int v7, v12, v13

    .line 730
    .local v7, "lowerHalfOffset":I
    const/16 v12, -0x2711

    move/from16 v0, p1

    if-ne v0, v12, :cond_5f

    .line 731
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x1

    if-ne v12, v13, :cond_5b

    .line 732
    invoke-virtual {v4, v7}, Landroid/view/View;->offsetTopAndBottom(I)V

    .line 736
    :goto_4d
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->invalidate()V

    .line 826
    .end local v7    # "lowerHalfOffset":I
    .end local v11    # "upperHalfOffset":I
    :goto_50
    return-void

    .line 726
    :cond_51
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    goto :goto_16

    .line 727
    .restart local v11    # "upperHalfOffset":I
    :cond_56
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    goto :goto_28

    .line 734
    .restart local v7    # "lowerHalfOffset":I
    :cond_5b
    invoke-virtual {v4, v11}, Landroid/view/View;->offsetTopAndBottom(I)V

    goto :goto_4d

    .line 737
    :cond_5f
    const/16 v12, -0x2712

    move/from16 v0, p1

    if-ne v0, v12, :cond_77

    .line 738
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x1

    if-ne v12, v13, :cond_73

    .line 739
    invoke-virtual {v4, v11}, Landroid/view/View;->offsetTopAndBottom(I)V

    .line 743
    :goto_6f
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->invalidate()V

    goto :goto_50

    .line 741
    :cond_73
    invoke-virtual {v4, v7}, Landroid/view/View;->offsetTopAndBottom(I)V

    goto :goto_6f

    .line 745
    :cond_77
    invoke-virtual {v4}, Landroid/view/View;->getTop()I

    move-result v10

    .line 746
    .local v10, "top":I
    sub-int v2, p1, v10

    .line 749
    .local v2, "deltaY":I
    if-gez p1, :cond_b7

    .line 751
    move v2, v11

    .line 756
    :cond_80
    :goto_80
    invoke-virtual {v4, v2}, Landroid/view/View;->offsetTopAndBottom(I)V

    .line 758
    move-object/from16 v0, p0

    iget-object v3, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mFrame:Landroid/graphics/Rect;

    .line 759
    .local v3, "frame":Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v8, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mInvalidate:Landroid/graphics/Rect;

    .line 762
    .local v8, "region":Landroid/graphics/Rect;
    invoke-virtual {v4, v3}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    .line 763
    invoke-virtual {v8, v3}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V

    .line 764
    iget v12, v3, Landroid/graphics/Rect;->left:I

    iget v13, v3, Landroid/graphics/Rect;->top:I

    sub-int/2addr v13, v2

    iget v14, v3, Landroid/graphics/Rect;->right:I

    iget v15, v3, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v15, v2

    invoke-virtual {v8, v12, v13, v14, v15}, Landroid/graphics/Rect;->union(IIII)V

    .line 767
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x1

    if-ne v12, v13, :cond_bb

    .line 768
    const/4 v12, 0x0

    const/4 v13, 0x0

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getWidth()I

    move-result v14

    iget v15, v3, Landroid/graphics/Rect;->top:I

    sub-int/2addr v15, v2

    invoke-virtual {v8, v12, v13, v14, v15}, Landroid/graphics/Rect;->union(IIII)V

    .line 773
    :goto_b1
    move-object/from16 v0, p0

    invoke-virtual {v0, v8}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->invalidate(Landroid/graphics/Rect;)V

    goto :goto_50

    .line 752
    .end local v3    # "frame":Landroid/graphics/Rect;
    .end local v8    # "region":Landroid/graphics/Rect;
    :cond_b7
    if-le v2, v7, :cond_80

    .line 754
    move v2, v7

    goto :goto_80

    .line 770
    .restart local v3    # "frame":Landroid/graphics/Rect;
    .restart local v8    # "region":Landroid/graphics/Rect;
    :cond_bb
    const/4 v12, 0x0

    iget v13, v3, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v13, v2

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getWidth()I

    move-result v14

    iget v15, v3, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v15, v2

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Landroid/view/View;->getHeight()I

    move-result v16

    add-int v15, v15, v16

    invoke-virtual {v8, v12, v13, v14, v15}, Landroid/graphics/Rect;->union(IIII)V

    goto :goto_b1

    .line 776
    .end local v2    # "deltaY":I
    .end local v3    # "frame":Landroid/graphics/Rect;
    .end local v7    # "lowerHalfOffset":I
    .end local v8    # "region":Landroid/graphics/Rect;
    .end local v10    # "top":I
    .end local v11    # "upperHalfOffset":I
    :cond_d6
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x4

    if-ne v12, v13, :cond_11e

    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    neg-int v12, v12

    :goto_e2
    invoke-virtual {v4}, Landroid/view/View;->getLeft()I

    move-result v13

    sub-int v6, v12, v13

    .line 777
    .local v6, "leftHalfOffset":I
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x4

    if-ne v12, v13, :cond_123

    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    neg-int v12, v12

    :goto_f4
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getRight()I

    move-result v13

    add-int/2addr v12, v13

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getLeft()I

    move-result v13

    sub-int/2addr v12, v13

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleWidth:I

    sub-int/2addr v12, v13

    .line 778
    invoke-virtual {v4}, Landroid/view/View;->getLeft()I

    move-result v13

    sub-int v9, v12, v13

    .line 780
    .local v9, "rightHalfOffset":I
    const/16 v12, -0x2711

    move/from16 v0, p1

    if-ne v0, v12, :cond_12c

    .line 781
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x4

    if-ne v12, v13, :cond_128

    .line 782
    invoke-virtual {v4, v9}, Landroid/view/View;->offsetLeftAndRight(I)V

    .line 786
    :goto_119
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->invalidate()V

    goto/16 :goto_50

    .line 776
    .end local v6    # "leftHalfOffset":I
    .end local v9    # "rightHalfOffset":I
    :cond_11e
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    goto :goto_e2

    .line 777
    .restart local v6    # "leftHalfOffset":I
    :cond_123
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    goto :goto_f4

    .line 784
    .restart local v9    # "rightHalfOffset":I
    :cond_128
    invoke-virtual {v4, v6}, Landroid/view/View;->offsetLeftAndRight(I)V

    goto :goto_119

    .line 787
    :cond_12c
    const/16 v12, -0x2712

    move/from16 v0, p1

    if-ne v0, v12, :cond_145

    .line 788
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x4

    if-ne v12, v13, :cond_141

    .line 789
    invoke-virtual {v4, v6}, Landroid/view/View;->offsetLeftAndRight(I)V

    .line 793
    :goto_13c
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->invalidate()V

    goto/16 :goto_50

    .line 791
    :cond_141
    invoke-virtual {v4, v9}, Landroid/view/View;->offsetLeftAndRight(I)V

    goto :goto_13c

    .line 795
    :cond_145
    invoke-virtual {v4}, Landroid/view/View;->getLeft()I

    move-result v5

    .line 796
    .local v5, "left":I
    sub-int v1, p1, v5

    .line 799
    .local v1, "deltaX":I
    if-gez p1, :cond_186

    .line 801
    move v1, v6

    .line 806
    :cond_14e
    :goto_14e
    invoke-virtual {v4, v1}, Landroid/view/View;->offsetLeftAndRight(I)V

    .line 808
    move-object/from16 v0, p0

    iget-object v3, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mFrame:Landroid/graphics/Rect;

    .line 809
    .restart local v3    # "frame":Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v8, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mInvalidate:Landroid/graphics/Rect;

    .line 812
    .restart local v8    # "region":Landroid/graphics/Rect;
    invoke-virtual {v4, v3}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    .line 813
    invoke-virtual {v8, v3}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V

    .line 814
    iget v12, v3, Landroid/graphics/Rect;->left:I

    sub-int/2addr v12, v1

    iget v13, v3, Landroid/graphics/Rect;->top:I

    iget v14, v3, Landroid/graphics/Rect;->right:I

    sub-int/2addr v14, v1

    iget v15, v3, Landroid/graphics/Rect;->bottom:I

    invoke-virtual {v8, v12, v13, v14, v15}, Landroid/graphics/Rect;->union(IIII)V

    .line 817
    move-object/from16 v0, p0

    iget v12, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v13, 0x4

    if-ne v12, v13, :cond_18a

    .line 818
    const/4 v12, 0x0

    const/4 v13, 0x0

    iget v14, v3, Landroid/graphics/Rect;->left:I

    sub-int/2addr v14, v1

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getHeight()I

    move-result v15

    invoke-virtual {v8, v12, v13, v14, v15}, Landroid/graphics/Rect;->union(IIII)V

    .line 823
    :goto_17f
    move-object/from16 v0, p0

    invoke-virtual {v0, v8}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->invalidate(Landroid/graphics/Rect;)V

    goto/16 :goto_50

    .line 802
    .end local v3    # "frame":Landroid/graphics/Rect;
    .end local v8    # "region":Landroid/graphics/Rect;
    :cond_186
    if-le v1, v9, :cond_14e

    .line 804
    move v1, v9

    goto :goto_14e

    .line 820
    .restart local v3    # "frame":Landroid/graphics/Rect;
    .restart local v8    # "region":Landroid/graphics/Rect;
    :cond_18a
    iget v12, v3, Landroid/graphics/Rect;->right:I

    sub-int/2addr v12, v1

    const/4 v13, 0x0

    iget v14, v3, Landroid/graphics/Rect;->right:I

    sub-int/2addr v14, v1

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-virtual {v15}, Landroid/view/View;->getWidth()I

    move-result v15

    add-int/2addr v14, v15

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getHeight()I

    move-result v15

    invoke-virtual {v8, v12, v13, v14, v15}, Landroid/graphics/Rect;->union(IIII)V

    goto :goto_17f
.end method

.method private openDrawer()V
    .registers 3

    .prologue
    .line 1076
    const/16 v0, -0x2711

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->moveHandle(I)V

    .line 1077
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 1079
    iget-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v0, :cond_10

    .line 1088
    :cond_f
    :goto_f
    return-void

    .line 1083
    :cond_10
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    .line 1085
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerOpenListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerOpenListener;

    if-eqz v0, :cond_f

    .line 1086
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerOpenListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerOpenListener;

    invoke-interface {v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerOpenListener;->onDrawerOpened()V

    goto :goto_f
.end method

.method private performFling(IFZ)V
    .registers 12
    .param p1, "position"    # I
    .param p2, "velocity"    # F
    .param p3, "always"    # Z

    .prologue
    const/16 v7, 0x3e8

    const/4 v3, 0x1

    const/4 v6, 0x0

    .line 592
    int-to-float v4, p1

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    .line 593
    iput p2, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    .line 595
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    if-eq v4, v3, :cond_12

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v5, 0x4

    if-ne v4, v5, :cond_56

    :cond_12
    move v2, v3

    .line 596
    .local v2, "reverse":Z
    :goto_13
    iget-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v4, :cond_c6

    .line 598
    if-nez p3, :cond_23

    if-eqz v2, :cond_58

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    neg-int v4, v4

    int-to-float v4, v4

    cmpg-float v4, p2, v4

    if-gez v4, :cond_5f

    .line 605
    :cond_23
    :goto_23
    if-eqz v2, :cond_ac

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    neg-int v4, v4

    int-to-float v4, v4

    :goto_29
    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedAcceleration:F

    .line 606
    if-eqz v2, :cond_b1

    .line 607
    cmpl-float v4, p2, v6

    if-lez v4, :cond_33

    .line 608
    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    .line 668
    :cond_33
    :goto_33
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    .line 669
    .local v0, "now":J
    iput-wide v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationLastTime:J

    .line 670
    const-wide/16 v4, 0x10

    add-long/2addr v4, v0

    iput-wide v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCurrentAnimationTime:J

    .line 671
    iput-boolean v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    .line 672
    iget-object v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandler:Landroid/os/Handler;

    invoke-virtual {v3, v7}, Landroid/os/Handler;->removeMessages(I)V

    .line 673
    iget-object v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandler:Landroid/os/Handler;

    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandler:Landroid/os/Handler;

    invoke-virtual {v4, v7}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v4

    iget-wide v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCurrentAnimationTime:J

    invoke-virtual {v3, v4, v6, v7}, Landroid/os/Handler;->sendMessageAtTime(Landroid/os/Message;J)Z

    .line 674
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->stopTracking()V

    .line 675
    return-void

    .line 595
    .end local v0    # "now":J
    .end local v2    # "reverse":Z
    :cond_56
    const/4 v2, 0x0

    goto :goto_13

    .line 598
    .restart local v2    # "reverse":Z
    :cond_58
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    int-to-float v4, v4

    cmpl-float v4, p2, v4

    if-gtz v4, :cond_23

    :cond_5f
    if-eqz v2, :cond_94

    iget-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v4, :cond_8a

    .line 599
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getHeight()I

    move-result v4

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleHeight:I

    mul-int/lit8 v5, v5, 0x2

    sub-int/2addr v4, v5

    .line 600
    :goto_6e
    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int/2addr v4, v5

    if-ge p1, v4, :cond_7a

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    int-to-float v4, v4

    cmpg-float v4, p2, v4

    if-ltz v4, :cond_23

    .line 619
    :cond_7a
    if-eqz v2, :cond_b9

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    int-to-float v4, v4

    :goto_7f
    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedAcceleration:F

    .line 621
    if-eqz v2, :cond_be

    .line 622
    cmpg-float v4, p2, v6

    if-gez v4, :cond_33

    .line 623
    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    goto :goto_33

    .line 600
    :cond_8a
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getWidth()I

    move-result v4

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleWidth:I

    mul-int/lit8 v5, v5, 0x2

    sub-int/2addr v4, v5

    goto :goto_6e

    :cond_94
    iget-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v4, :cond_a9

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleHeight:I

    :goto_9a
    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v4, v5

    if-le p1, v4, :cond_7a

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    neg-int v4, v4

    int-to-float v4, v4

    cmpl-float v4, p2, v4

    if-lez v4, :cond_7a

    goto/16 :goto_23

    :cond_a9
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleWidth:I

    goto :goto_9a

    .line 605
    :cond_ac
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    int-to-float v4, v4

    goto/16 :goto_29

    .line 612
    :cond_b1
    cmpg-float v4, p2, v6

    if-gez v4, :cond_33

    .line 613
    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    goto/16 :goto_33

    .line 619
    :cond_b9
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    neg-int v4, v4

    int-to-float v4, v4

    goto :goto_7f

    .line 627
    :cond_be
    cmpl-float v4, p2, v6

    if-lez v4, :cond_33

    .line 628
    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    goto/16 :goto_33

    .line 635
    :cond_c6
    if-nez p3, :cond_100

    if-eqz v2, :cond_e4

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    neg-int v4, v4

    int-to-float v4, v4

    cmpg-float v4, p2, v4

    if-gez v4, :cond_eb

    .line 640
    :cond_d2
    :goto_d2
    if-eqz v2, :cond_130

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    neg-int v4, v4

    int-to-float v4, v4

    :goto_d8
    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedAcceleration:F

    .line 641
    if-eqz v2, :cond_134

    .line 642
    cmpl-float v4, p2, v6

    if-lez v4, :cond_33

    .line 643
    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    goto/16 :goto_33

    .line 635
    :cond_e4
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    int-to-float v4, v4

    cmpl-float v4, p2, v4

    if-gtz v4, :cond_d2

    :cond_eb
    if-eqz v2, :cond_116

    iget-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v4, :cond_111

    .line 636
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getHeight()I

    move-result v4

    .line 637
    :goto_f5
    div-int/lit8 v4, v4, 0x2

    if-ge p1, v4, :cond_100

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    int-to-float v4, v4

    cmpg-float v4, p2, v4

    if-ltz v4, :cond_d2

    .line 654
    :cond_100
    if-eqz v2, :cond_13c

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    int-to-float v4, v4

    :goto_105
    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedAcceleration:F

    .line 655
    if-eqz v2, :cond_141

    .line 656
    cmpg-float v4, p2, v6

    if-gez v4, :cond_33

    .line 657
    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    goto/16 :goto_33

    .line 637
    :cond_111
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getHeight()I

    move-result v4

    goto :goto_f5

    :cond_116
    iget-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v4, :cond_12b

    .line 638
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getHeight()I

    move-result v4

    :goto_11e
    div-int/lit8 v4, v4, 0x2

    if-le p1, v4, :cond_100

    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    neg-int v4, v4

    int-to-float v4, v4

    cmpl-float v4, p2, v4

    if-lez v4, :cond_100

    goto :goto_d2

    :cond_12b
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getWidth()I

    move-result v4

    goto :goto_11e

    .line 640
    :cond_130
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    int-to-float v4, v4

    goto :goto_d8

    .line 646
    :cond_134
    cmpg-float v4, p2, v6

    if-gez v4, :cond_33

    .line 647
    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    goto/16 :goto_33

    .line 654
    :cond_13c
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    neg-int v4, v4

    int-to-float v4, v4

    goto :goto_105

    .line 660
    :cond_141
    cmpl-float v4, p2, v6

    if-lez v4, :cond_33

    .line 661
    iput v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    goto/16 :goto_33
.end method

.method private prepareContent()V
    .registers 11

    .prologue
    const/high16 v8, 0x40000000

    const/4 v9, 0x0

    .line 829
    iget-boolean v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    if-eqz v5, :cond_8

    .line 868
    :goto_7
    return-void

    .line 835
    :cond_8
    iget-object v2, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    .line 836
    .local v2, "content":Landroid/view/View;
    invoke-virtual {v2}, Landroid/view/View;->isLayoutRequested()Z

    move-result v5

    if-eqz v5, :cond_48

    .line 837
    iget-boolean v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v5, :cond_71

    .line 838
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleHeight:I

    .line 839
    .local v0, "childHeight":I
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getBottom()I

    move-result v5

    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getTop()I

    move-result v6

    sub-int/2addr v5, v6

    sub-int/2addr v5, v0

    iget v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int v3, v5, v6

    .line 840
    .local v3, "height":I
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getRight()I

    move-result v5

    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getLeft()I

    move-result v6

    sub-int/2addr v5, v6

    invoke-static {v5, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    .line 841
    invoke-static {v3, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v6

    .line 840
    invoke-virtual {v2, v5, v6}, Landroid/view/View;->measure(II)V

    .line 843
    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v6, 0x1

    if-ne v5, v6, :cond_5e

    .line 844
    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v5

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v6

    invoke-virtual {v2, v9, v9, v5, v6}, Landroid/view/View;->layout(IIII)V

    .line 863
    .end local v0    # "childHeight":I
    .end local v3    # "height":I
    :cond_48
    :goto_48
    invoke-virtual {v2}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v5

    invoke-virtual {v5}, Landroid/view/ViewTreeObserver;->dispatchOnPreDraw()Z

    .line 864
    invoke-virtual {v2}, Landroid/view/View;->isHardwareAccelerated()Z

    move-result v5

    if-nez v5, :cond_58

    .line 865
    invoke-virtual {v2}, Landroid/view/View;->buildDrawingCache()V

    .line 867
    :cond_58
    const/16 v5, 0x8

    invoke-virtual {v2, v5}, Landroid/view/View;->setVisibility(I)V

    goto :goto_7

    .line 846
    .restart local v0    # "childHeight":I
    .restart local v3    # "height":I
    :cond_5e
    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v5, v0

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v6

    iget v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v7, v0

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {v2, v9, v5, v6, v7}, Landroid/view/View;->layout(IIII)V

    goto :goto_48

    .line 849
    .end local v0    # "childHeight":I
    .end local v3    # "height":I
    :cond_71
    iget-object v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v5}, Landroid/view/View;->getWidth()I

    move-result v1

    .line 850
    .local v1, "childWidth":I
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getRight()I

    move-result v5

    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getLeft()I

    move-result v6

    sub-int/2addr v5, v6

    sub-int/2addr v5, v1

    iget v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int v4, v5, v6

    .line 851
    .local v4, "width":I
    invoke-static {v4, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    .line 852
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getBottom()I

    move-result v6

    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getTop()I

    move-result v7

    sub-int/2addr v6, v7

    invoke-static {v6, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v6

    .line 851
    invoke-virtual {v2, v5, v6}, Landroid/view/View;->measure(II)V

    .line 854
    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v6, 0x4

    if-ne v5, v6, :cond_aa

    .line 855
    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v5

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v6

    invoke-virtual {v2, v9, v9, v5, v6}, Landroid/view/View;->layout(IIII)V

    goto :goto_48

    .line 857
    :cond_aa
    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v5, v1

    iget v6, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v6, v1

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v7

    add-int/2addr v6, v7

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v7

    invoke-virtual {v2, v5, v9, v6, v7}, Landroid/view/View;->layout(IIII)V

    goto :goto_48
.end method

.method private prepareTracking(I)V
    .registers 9
    .param p1, "position"    # I

    .prologue
    const/16 v6, 0x3e8

    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 678
    iput-boolean v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTracking:Z

    .line 679
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v5

    iput-object v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 680
    iget-boolean v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-nez v5, :cond_3d

    move v2, v3

    .line 681
    .local v2, "opening":Z
    :goto_11
    if-eqz v2, :cond_69

    .line 682
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumAcceleration:I

    int-to-float v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedAcceleration:F

    .line 683
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMajorVelocity:I

    int-to-float v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedVelocity:F

    .line 687
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    packed-switch v4, :pswitch_data_78

    .line 706
    :goto_22
    :pswitch_22
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    float-to-int v4, v4

    invoke-direct {p0, v4}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->moveHandle(I)V

    .line 707
    iput-boolean v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    .line 708
    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandler:Landroid/os/Handler;

    invoke-virtual {v4, v6}, Landroid/os/Handler;->removeMessages(I)V

    .line 709
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    .line 710
    .local v0, "now":J
    iput-wide v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationLastTime:J

    .line 711
    const-wide/16 v4, 0x10

    add-long/2addr v4, v0

    iput-wide v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCurrentAnimationTime:J

    .line 712
    iput-boolean v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    .line 720
    .end local v0    # "now":J
    :goto_3c
    return-void

    .end local v2    # "opening":Z
    :cond_3d
    move v2, v4

    .line 680
    goto :goto_11

    .line 689
    .restart local v2    # "opening":Z
    :pswitch_3f
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    neg-int v4, v4

    int-to-float v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimatedAcceleration:F

    goto :goto_22

    .line 693
    :pswitch_46
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getHeight()I

    move-result v4

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleHeight:I

    sub-int/2addr v4, v5

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    add-int/2addr v4, v5

    int-to-float v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    goto :goto_22

    .line 697
    :pswitch_54
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    neg-int v4, v4

    int-to-float v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    goto :goto_22

    .line 701
    :pswitch_5b
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getWidth()I

    move-result v4

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleWidth:I

    sub-int/2addr v4, v5

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    add-int/2addr v4, v5

    int-to-float v4, v4

    iput v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimationPosition:F

    goto :goto_22

    .line 714
    :cond_69
    iget-boolean v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    if-eqz v3, :cond_74

    .line 715
    iput-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    .line 716
    iget-object v3, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandler:Landroid/os/Handler;

    invoke-virtual {v3, v6}, Landroid/os/Handler;->removeMessages(I)V

    .line 718
    :cond_74
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->moveHandle(I)V

    goto :goto_3c

    .line 687
    :pswitch_data_78
    .packed-switch 0x1
        :pswitch_3f
        :pswitch_46
        :pswitch_22
        :pswitch_54
        :pswitch_22
        :pswitch_22
        :pswitch_22
        :pswitch_5b
    .end packed-switch
.end method

.method private stopTracking()V
    .registers 3

    .prologue
    const/4 v1, 0x0

    .line 871
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setPressed(Z)V

    .line 872
    iput-boolean v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTracking:Z

    .line 874
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerScrollListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;

    if-eqz v0, :cond_11

    .line 875
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerScrollListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;

    invoke-interface {v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;->onScrollEnded()V

    .line 878
    :cond_11
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_1d

    .line 879
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    .line 880
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 882
    :cond_1d
    return-void
.end method


# virtual methods
.method public animateClose()V
    .registers 3

    .prologue
    .line 1012
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->prepareContent()V

    .line 1013
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerScrollListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;

    .line 1014
    .local v0, "scrollListener":Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;
    if-eqz v0, :cond_a

    .line 1015
    invoke-interface {v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;->onScrollStarted()V

    .line 1017
    :cond_a
    iget-boolean v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v1, :cond_1d

    iget-object v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v1

    :goto_14
    invoke-direct {p0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->animateClose(I)V

    .line 1019
    if-eqz v0, :cond_1c

    .line 1020
    invoke-interface {v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;->onScrollEnded()V

    .line 1022
    :cond_1c
    return-void

    .line 1017
    :cond_1d
    iget-object v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v1

    goto :goto_14
.end method

.method public animateOpen()V
    .registers 3

    .prologue
    .line 1034
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->prepareContent()V

    .line 1035
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerScrollListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;

    .line 1036
    .local v0, "scrollListener":Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;
    if-eqz v0, :cond_a

    .line 1037
    invoke-interface {v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;->onScrollStarted()V

    .line 1039
    :cond_a
    iget-boolean v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v1, :cond_22

    iget-object v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v1

    :goto_14
    invoke-direct {p0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->animateOpen(I)V

    .line 1041
    const/16 v1, 0x20

    invoke-virtual {p0, v1}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->sendAccessibilityEvent(I)V

    .line 1043
    if-eqz v0, :cond_21

    .line 1044
    invoke-interface {v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;->onScrollEnded()V

    .line 1046
    :cond_21
    return-void

    .line 1039
    :cond_22
    iget-object v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v1

    goto :goto_14
.end method

.method public animateToggle()V
    .registers 2

    .prologue
    .line 967
    iget-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-nez v0, :cond_8

    .line 968
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->animateOpen()V

    .line 972
    :goto_7
    return-void

    .line 970
    :cond_8
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->animateClose()V

    goto :goto_7
.end method

.method public close()V
    .registers 1

    .prologue
    .line 997
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->closeDrawer()V

    .line 998
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->invalidate()V

    .line 999
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->requestLayout()V

    .line 1000
    return-void
.end method

.method protected dispatchDraw(Landroid/graphics/Canvas;)V
    .registers 10
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    const/4 v7, 0x0

    const/4 v6, 0x0

    .line 289
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getDrawingTime()J

    move-result-wide v2

    .line 290
    .local v2, "drawingTime":J
    iget-object v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    .line 291
    .local v1, "handle":Landroid/view/View;
    invoke-virtual {p0, p1, v1, v2, v3}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    .line 293
    iget-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTracking:Z

    if-nez v4, :cond_13

    iget-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    if-eqz v4, :cond_a0

    .line 294
    :cond_13
    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getDrawingCache()Landroid/graphics/Bitmap;

    move-result-object v0

    .line 296
    .local v0, "cache":Landroid/graphics/Bitmap;
    if-eqz v0, :cond_55

    .line 297
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    packed-switch v4, :pswitch_data_ac

    .line 348
    .end local v0    # "cache":Landroid/graphics/Bitmap;
    :cond_20
    :goto_20
    :pswitch_20
    return-void

    .line 299
    .restart local v0    # "cache":Landroid/graphics/Bitmap;
    :pswitch_21
    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v4

    neg-int v4, v4

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v5

    add-int/2addr v4, v5

    int-to-float v4, v4

    invoke-virtual {p1, v0, v6, v4, v7}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    goto :goto_20

    .line 303
    :pswitch_32
    invoke-virtual {v1}, Landroid/view/View;->getBottom()I

    move-result v4

    int-to-float v4, v4

    invoke-virtual {p1, v0, v6, v4, v7}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    goto :goto_20

    .line 307
    :pswitch_3b
    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v4

    neg-int v4, v4

    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v5

    add-int/2addr v4, v5

    int-to-float v4, v4

    invoke-virtual {p1, v0, v4, v6, v7}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    goto :goto_20

    .line 311
    :pswitch_4c
    invoke-virtual {v1}, Landroid/view/View;->getRight()I

    move-result v4

    int-to-float v4, v4

    invoke-virtual {p1, v0, v4, v6, v7}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    goto :goto_20

    .line 316
    :cond_55
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    .line 321
    iget v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    packed-switch v4, :pswitch_data_c0

    .line 340
    :goto_5d
    :pswitch_5d
    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-virtual {p0, p1, v4, v2, v3}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    .line 342
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    goto :goto_20

    .line 323
    :pswitch_66
    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v4

    neg-int v4, v4

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v5

    add-int/2addr v4, v5

    int-to-float v4, v4

    invoke-virtual {p1, v6, v4}, Landroid/graphics/Canvas;->translate(FF)V

    goto :goto_5d

    .line 327
    :pswitch_77
    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v4

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int/2addr v4, v5

    int-to-float v4, v4

    invoke-virtual {p1, v6, v4}, Landroid/graphics/Canvas;->translate(FF)V

    goto :goto_5d

    .line 331
    :pswitch_83
    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v4

    neg-int v4, v4

    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v5

    add-int/2addr v4, v5

    int-to-float v4, v4

    invoke-virtual {p1, v4, v6}, Landroid/graphics/Canvas;->translate(FF)V

    goto :goto_5d

    .line 335
    :pswitch_94
    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v4

    iget v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int/2addr v4, v5

    int-to-float v4, v4

    invoke-virtual {p1, v4, v6}, Landroid/graphics/Canvas;->translate(FF)V

    goto :goto_5d

    .line 345
    .end local v0    # "cache":Landroid/graphics/Bitmap;
    :cond_a0
    iget-boolean v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v4, :cond_20

    .line 346
    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-virtual {p0, p1, v4, v2, v3}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    goto/16 :goto_20

    .line 297
    nop

    :pswitch_data_ac
    .packed-switch 0x1
        :pswitch_21
        :pswitch_32
        :pswitch_20
        :pswitch_3b
        :pswitch_20
        :pswitch_20
        :pswitch_20
        :pswitch_4c
    .end packed-switch

    .line 321
    :pswitch_data_c0
    .packed-switch 0x1
        :pswitch_66
        :pswitch_77
        :pswitch_5d
        :pswitch_83
        :pswitch_5d
        :pswitch_5d
        :pswitch_5d
        :pswitch_94
    .end packed-switch
.end method

.method public getContent()Landroid/view/View;
    .registers 2

    .prologue
    .line 1136
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    return-object v0
.end method

.method public getHandle()Landroid/view/View;
    .registers 2

    .prologue
    .line 1127
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    return-object v0
.end method

.method public isMoving()Z
    .registers 2

    .prologue
    .line 1172
    iget-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTracking:Z

    if-nez v0, :cond_8

    iget-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    if-eqz v0, :cond_a

    :cond_8
    const/4 v0, 0x1

    :goto_9
    return v0

    :cond_a
    const/4 v0, 0x0

    goto :goto_9
.end method

.method public isOpened()Z
    .registers 2

    .prologue
    .line 1163
    iget-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    return v0
.end method

.method public lock()V
    .registers 2

    .prologue
    .line 1154
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mLocked:Z

    .line 1155
    return-void
.end method

.method protected onFinishInflate()V
    .registers 4

    .prologue
    .line 248
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleId:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    .line 249
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    if-nez v0, :cond_14

    .line 250
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "The handle attribute is must refer to an existing child."

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 252
    :cond_14
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    new-instance v1, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$DrawerToggler;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$DrawerToggler;-><init>(Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$1;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 254
    iget v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContentId:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    .line 255
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    if-nez v0, :cond_33

    .line 256
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "The content attribute is must refer to an existing child."

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 258
    :cond_33
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 259
    return-void
.end method

.method public onInitializeAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V
    .registers 3
    .param p1, "event"    # Landroid/view/accessibility/AccessibilityEvent;

    .prologue
    .line 1050
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onInitializeAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V

    .line 1051
    const-class v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityEvent;->setClassName(Ljava/lang/CharSequence;)V

    .line 1052
    return-void
.end method

.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
    .registers 3
    .param p1, "info"    # Landroid/view/accessibility/AccessibilityNodeInfo;

    .prologue
    .line 1056
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V

    .line 1057
    const-class v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V

    .line 1058
    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 13
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    const/4 v7, 0x0

    const/4 v8, 0x1

    .line 407
    iget-boolean v9, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mLocked:Z

    if-eqz v9, :cond_7

    .line 450
    :cond_6
    :goto_6
    return v7

    .line 411
    :cond_7
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 413
    .local v0, "action":I
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v5

    .line 414
    .local v5, "x":F
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v6

    .line 416
    .local v6, "y":F
    iget-object v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mFrame:Landroid/graphics/Rect;

    .line 417
    .local v1, "frame":Landroid/graphics/Rect;
    iget-object v2, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    .line 420
    .local v2, "handle":Landroid/view/View;
    invoke-virtual {v2, v1}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    .line 421
    iget-boolean v9, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTracking:Z

    if-nez v9, :cond_26

    float-to-int v9, v5

    float-to-int v10, v6

    invoke-virtual {v1, v9, v10}, Landroid/graphics/Rect;->contains(II)Z

    move-result v9

    if-eqz v9, :cond_6

    .line 425
    :cond_26
    if-nez v0, :cond_4f

    .line 426
    iput-boolean v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTracking:Z

    .line 428
    invoke-virtual {v2, v8}, Landroid/view/View;->setPressed(Z)V

    .line 430
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->prepareContent()V

    .line 433
    iget-object v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerScrollListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;

    if-eqz v7, :cond_39

    .line 434
    iget-object v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerScrollListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;

    invoke-interface {v7}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;->onScrollStarted()V

    .line 437
    :cond_39
    iget-boolean v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v7, :cond_51

    .line 438
    iget-object v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v7}, Landroid/view/View;->getTop()I

    move-result v4

    .line 439
    .local v4, "top":I
    float-to-int v7, v6

    sub-int/2addr v7, v4

    iput v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTouchDelta:I

    .line 440
    invoke-direct {p0, v4}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->prepareTracking(I)V

    .line 447
    .end local v4    # "top":I
    :goto_4a
    iget-object v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v7, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    :cond_4f
    move v7, v8

    .line 450
    goto :goto_6

    .line 442
    :cond_51
    iget-object v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v7}, Landroid/view/View;->getLeft()I

    move-result v3

    .line 443
    .local v3, "left":I
    float-to-int v7, v5

    sub-int/2addr v7, v3

    iput v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTouchDelta:I

    .line 444
    invoke-direct {p0, v3}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->prepareTracking(I)V

    goto :goto_4a
.end method

.method protected onLayout(ZIIII)V
    .registers 19
    .param p1, "changed"    # Z
    .param p2, "l"    # I
    .param p3, "t"    # I
    .param p4, "r"    # I
    .param p5, "b"    # I

    .prologue
    .line 352
    iget-boolean v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTracking:Z

    if-eqz v8, :cond_5

    .line 403
    :goto_4
    return-void

    .line 356
    :cond_5
    sub-int v7, p4, p2

    .line 357
    .local v7, "width":I
    sub-int v6, p5, p3

    .line 359
    .local v6, "height":I
    iget-object v5, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    .line 361
    .local v5, "handle":Landroid/view/View;
    invoke-virtual {v5}, Landroid/view/View;->getMeasuredWidth()I

    move-result v3

    .line 362
    .local v3, "childWidth":I
    invoke-virtual {v5}, Landroid/view/View;->getMeasuredHeight()I

    move-result v0

    .line 364
    .local v0, "childHeight":I
    const/4 v1, 0x0

    .line 365
    .local v1, "childLeft":I
    const/4 v2, 0x0

    .line 367
    .local v2, "childTop":I
    iget-object v4, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    .line 369
    .local v4, "content":Landroid/view/View;
    iget v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    packed-switch v8, :pswitch_data_bc

    .line 400
    :goto_1c
    :pswitch_1c
    add-int v8, v1, v3

    add-int v9, v2, v0

    invoke-virtual {v5, v1, v2, v8, v9}, Landroid/view/View;->layout(IIII)V

    .line 401
    invoke-virtual {v5}, Landroid/view/View;->getHeight()I

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleHeight:I

    .line 402
    invoke-virtual {v5}, Landroid/view/View;->getWidth()I

    move-result v8

    iput v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleWidth:I

    goto :goto_4

    .line 371
    :pswitch_30
    sub-int v8, v7, v3

    div-int/lit8 v1, v8, 0x2

    .line 372
    iget-boolean v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v8, :cond_4c

    sub-int v8, v6, v0

    iget v9, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int v2, v8, v9

    .line 374
    :goto_3e
    const/4 v8, 0x0

    const/4 v9, 0x0

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v10

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v11

    invoke-virtual {v4, v8, v9, v10, v11}, Landroid/view/View;->layout(IIII)V

    goto :goto_1c

    .line 372
    :cond_4c
    iget v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    neg-int v2, v8

    goto :goto_3e

    .line 378
    :pswitch_50
    sub-int v8, v7, v3

    div-int/lit8 v1, v8, 0x2

    .line 379
    iget-boolean v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v8, :cond_6e

    iget v2, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    .line 381
    :goto_5a
    const/4 v8, 0x0

    iget v9, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v9, v0

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v10

    iget v11, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v11, v0

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v12

    add-int/2addr v11, v12

    invoke-virtual {v4, v8, v9, v10, v11}, Landroid/view/View;->layout(IIII)V

    goto :goto_1c

    .line 379
    :cond_6e
    sub-int v8, v6, v0

    iget v9, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    add-int v2, v8, v9

    goto :goto_5a

    .line 385
    :pswitch_75
    iget-boolean v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v8, :cond_91

    sub-int v8, v7, v3

    iget v9, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int v1, v8, v9

    .line 386
    :goto_7f
    sub-int v8, v6, v0

    div-int/lit8 v2, v8, 0x2

    .line 388
    const/4 v8, 0x0

    const/4 v9, 0x0

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v10

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v11

    invoke-virtual {v4, v8, v9, v10, v11}, Landroid/view/View;->layout(IIII)V

    goto :goto_1c

    .line 385
    :cond_91
    iget v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    neg-int v1, v8

    goto :goto_7f

    .line 392
    :pswitch_95
    iget-boolean v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v8, :cond_b4

    iget v1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    .line 393
    :goto_9b
    sub-int v8, v6, v0

    div-int/lit8 v2, v8, 0x2

    .line 395
    iget v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v8, v3

    const/4 v9, 0x0

    iget v10, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v10, v3

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v11

    add-int/2addr v10, v11

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v11

    invoke-virtual {v4, v8, v9, v10, v11}, Landroid/view/View;->layout(IIII)V

    goto/16 :goto_1c

    .line 392
    :cond_b4
    sub-int v8, v7, v3

    iget v9, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    add-int v1, v8, v9

    goto :goto_9b

    .line 369
    nop

    :pswitch_data_bc
    .packed-switch 0x1
        :pswitch_30
        :pswitch_50
        :pswitch_1c
        :pswitch_75
        :pswitch_1c
        :pswitch_1c
        :pswitch_1c
        :pswitch_95
    .end packed-switch
.end method

.method protected onMeasure(II)V
    .registers 13
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .prologue
    const/high16 v9, 0x40000000

    .line 263
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v5

    .line 264
    .local v5, "widthSpecMode":I
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v6

    .line 266
    .local v6, "widthSpecSize":I
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v2

    .line 267
    .local v2, "heightSpecMode":I
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v3

    .line 269
    .local v3, "heightSpecSize":I
    if-eqz v5, :cond_16

    if-nez v2, :cond_1e

    .line 270
    :cond_16
    new-instance v7, Ljava/lang/RuntimeException;

    const-string v8, "SlidingDrawer cannot have UNSPECIFIED dimensions"

    invoke-direct {v7, v8}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v7

    .line 273
    :cond_1e
    iget-object v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    .line 274
    .local v0, "handle":Landroid/view/View;
    invoke-virtual {p0, v0, p1, p2}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->measureChild(Landroid/view/View;II)V

    .line 276
    iget-boolean v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v7, :cond_42

    .line 277
    invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I

    move-result v7

    sub-int v7, v3, v7

    iget v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int v1, v7, v8

    .line 278
    .local v1, "height":I
    iget-object v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-static {v6, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v8

    invoke-static {v1, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v9

    invoke-virtual {v7, v8, v9}, Landroid/view/View;->measure(II)V

    .line 284
    .end local v1    # "height":I
    :goto_3e
    invoke-virtual {p0, v6, v3}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->setMeasuredDimension(II)V

    .line 285
    return-void

    .line 280
    :cond_42
    invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I

    move-result v7

    sub-int v7, v6, v7

    iget v8, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    sub-int v4, v7, v8

    .line 281
    .local v4, "width":I
    iget-object v7, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mContent:Landroid/view/View;

    invoke-static {v4, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v8

    invoke-static {v3, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v9

    invoke-virtual {v7, v8, v9}, Landroid/view/View;->measure(II)V

    goto :goto_3e
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 20
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 455
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mLocked:Z

    if-eqz v13, :cond_8

    .line 456
    const/4 v13, 0x1

    .line 544
    :goto_7
    return v13

    .line 459
    :cond_8
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTracking:Z

    if-eqz v13, :cond_1e

    .line 460
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v0, p1

    invoke-virtual {v13, v0}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 461
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    .line 462
    .local v2, "action":I
    packed-switch v2, :pswitch_data_1fa

    .line 544
    .end local v2    # "action":I
    :cond_1e
    :goto_1e
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTracking:Z

    if-nez v13, :cond_30

    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAnimating:Z

    if-nez v13, :cond_30

    invoke-super/range {p0 .. p1}, Landroid/view/ViewGroup;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v13

    if-eqz v13, :cond_1f6

    :cond_30
    const/4 v13, 0x1

    goto :goto_7

    .line 464
    .restart local v2    # "action":I
    :pswitch_32
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    if-eqz v13, :cond_48

    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F

    move-result v13

    :goto_3c
    float-to-int v13, v13

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTouchDelta:I

    sub-int/2addr v13, v14

    move-object/from16 v0, p0

    invoke-direct {v0, v13}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->moveHandle(I)V

    goto :goto_1e

    :cond_48
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F

    move-result v13

    goto :goto_3c

    .line 468
    :pswitch_4d
    move-object/from16 v0, p0

    iget-object v9, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 469
    .local v9, "velocityTracker":Landroid/view/VelocityTracker;
    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVelocityUnits:I

    invoke-virtual {v9, v13}, Landroid/view/VelocityTracker;->computeCurrentVelocity(I)V

    .line 471
    invoke-virtual {v9}, Landroid/view/VelocityTracker;->getYVelocity()F

    move-result v12

    .line 472
    .local v12, "yVelocity":F
    invoke-virtual {v9}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v11

    .line 475
    .local v11, "xVelocity":F
    move-object/from16 v0, p0

    iget-boolean v10, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mVertical:Z

    .line 476
    .local v10, "vertical":Z
    if-eqz v10, :cond_10f

    .line 477
    const/4 v13, 0x0

    cmpg-float v13, v12, v13

    if-gez v13, :cond_10c

    const/4 v4, 0x1

    .line 478
    .local v4, "negative":Z
    :goto_6c
    const/4 v13, 0x0

    cmpg-float v13, v11, v13

    if-gez v13, :cond_72

    .line 479
    neg-float v11, v11

    .line 481
    :cond_72
    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMinorVelocity:I

    int-to-float v13, v13

    cmpl-float v13, v11, v13

    if-lez v13, :cond_80

    .line 482
    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMinorVelocity:I

    int-to-float v11, v13

    .line 494
    :cond_80
    :goto_80
    float-to-double v14, v11

    float-to-double v0, v12

    move-wide/from16 v16, v0

    invoke-static/range {v14 .. v17}, Ljava/lang/Math;->hypot(DD)D

    move-result-wide v14

    double-to-float v8, v14

    .line 495
    .local v8, "velocity":F
    if-eqz v4, :cond_8c

    .line 496
    neg-float v8, v8

    .line 499
    :cond_8c
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v13}, Landroid/view/View;->getTop()I

    move-result v7

    .line 500
    .local v7, "top":I
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandle:Landroid/view/View;

    invoke-virtual {v13}, Landroid/view/View;->getLeft()I

    move-result v3

    .line 502
    .local v3, "left":I
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mAllowSingleTap:Z

    if-eqz v13, :cond_1ea

    invoke-static {v8}, Ljava/lang/Math;->abs(F)F

    move-result v13

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumTapVelocity:I

    int-to-float v14, v14

    cmpg-float v13, v13, v14

    if-gez v13, :cond_1ea

    .line 503
    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v14, 0x1

    if-eq v13, v14, :cond_bd

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOrientation:I

    const/4 v14, 0x4

    if-ne v13, v14, :cond_12d

    :cond_bd
    const/4 v6, 0x1

    .line 504
    .local v6, "reverse":Z
    :goto_be
    const/4 v5, 0x0

    .line 505
    .local v5, "performSingleTap":Z
    if-eqz v10, :cond_164

    .line 506
    if-eqz v6, :cond_e3

    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v13, :cond_e3

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getBottom()I

    move-result v14

    add-int/2addr v13, v14

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getTop()I

    move-result v14

    sub-int/2addr v13, v14

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleHeight:I

    sub-int/2addr v13, v14

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTapThreshold:I

    sub-int/2addr v13, v14

    if-gt v7, v13, :cond_f4

    :cond_e3
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-nez v13, :cond_12f

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTapThreshold:I

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v13, v14

    if-ge v7, v13, :cond_12f

    .line 508
    :cond_f4
    const/4 v5, 0x1

    .line 523
    :cond_f5
    :goto_f5
    if-eqz v5, :cond_1de

    .line 524
    const/4 v13, 0x0

    move-object/from16 v0, p0

    invoke-virtual {v0, v13}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->playSoundEffect(I)V

    .line 526
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v13, :cond_1d3

    .line 527
    if-eqz v10, :cond_1d0

    .end local v7    # "top":I
    :goto_105
    move-object/from16 v0, p0

    invoke-direct {v0, v7}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->animateClose(I)V

    goto/16 :goto_1e

    .line 477
    .end local v3    # "left":I
    .end local v4    # "negative":Z
    .end local v5    # "performSingleTap":Z
    .end local v6    # "reverse":Z
    .end local v8    # "velocity":F
    :cond_10c
    const/4 v4, 0x0

    goto/16 :goto_6c

    .line 485
    :cond_10f
    const/4 v13, 0x0

    cmpg-float v13, v11, v13

    if-gez v13, :cond_12b

    const/4 v4, 0x1

    .line 486
    .restart local v4    # "negative":Z
    :goto_115
    const/4 v13, 0x0

    cmpg-float v13, v12, v13

    if-gez v13, :cond_11b

    .line 487
    neg-float v12, v12

    .line 489
    :cond_11b
    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMinorVelocity:I

    int-to-float v13, v13

    cmpl-float v13, v12, v13

    if-lez v13, :cond_80

    .line 490
    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mMaximumMinorVelocity:I

    int-to-float v12, v13

    goto/16 :goto_80

    .line 485
    .end local v4    # "negative":Z
    :cond_12b
    const/4 v4, 0x0

    goto :goto_115

    .line 503
    .restart local v3    # "left":I
    .restart local v4    # "negative":Z
    .restart local v7    # "top":I
    .restart local v8    # "velocity":F
    :cond_12d
    const/4 v6, 0x0

    goto :goto_be

    .line 509
    .restart local v5    # "performSingleTap":Z
    .restart local v6    # "reverse":Z
    :cond_12f
    if-nez v6, :cond_142

    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v13, :cond_142

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTapThreshold:I

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v13, v14

    if-lt v7, v13, :cond_162

    :cond_142
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-nez v13, :cond_f5

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    .line 510
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getBottom()I

    move-result v14

    add-int/2addr v13, v14

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getTop()I

    move-result v14

    sub-int/2addr v13, v14

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleHeight:I

    sub-int/2addr v13, v14

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTapThreshold:I

    sub-int/2addr v13, v14

    if-le v7, v13, :cond_f5

    .line 511
    :cond_162
    const/4 v5, 0x1

    goto :goto_f5

    .line 514
    :cond_164
    if-eqz v6, :cond_186

    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v13, :cond_186

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getRight()I

    move-result v14

    add-int/2addr v13, v14

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getLeft()I

    move-result v14

    sub-int/2addr v13, v14

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleWidth:I

    sub-int/2addr v13, v14

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTapThreshold:I

    sub-int/2addr v13, v14

    if-gt v3, v13, :cond_197

    :cond_186
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-nez v13, :cond_19a

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTapThreshold:I

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v13, v14

    if-ge v3, v13, :cond_19a

    .line 516
    :cond_197
    const/4 v5, 0x1

    goto/16 :goto_f5

    .line 517
    :cond_19a
    if-nez v6, :cond_1ad

    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-eqz v13, :cond_1ad

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTapThreshold:I

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpandedOffset:I

    add-int/2addr v13, v14

    if-lt v3, v13, :cond_1cd

    :cond_1ad
    move-object/from16 v0, p0

    iget-boolean v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-nez v13, :cond_f5

    move-object/from16 v0, p0

    iget v13, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mCollapsedOffset:I

    .line 518
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getRight()I

    move-result v14

    add-int/2addr v13, v14

    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->getLeft()I

    move-result v14

    sub-int/2addr v13, v14

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mHandleWidth:I

    sub-int/2addr v13, v14

    move-object/from16 v0, p0

    iget v14, v0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mTapThreshold:I

    sub-int/2addr v13, v14

    if-le v3, v13, :cond_f5

    .line 519
    :cond_1cd
    const/4 v5, 0x1

    goto/16 :goto_f5

    :cond_1d0
    move v7, v3

    .line 527
    goto/16 :goto_105

    .line 529
    :cond_1d3
    if-eqz v10, :cond_1dc

    .end local v7    # "top":I
    :goto_1d5
    move-object/from16 v0, p0

    invoke-direct {v0, v7}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->animateOpen(I)V

    goto/16 :goto_1e

    .restart local v7    # "top":I
    :cond_1dc
    move v7, v3

    goto :goto_1d5

    .line 533
    :cond_1de
    if-eqz v10, :cond_1e8

    .end local v7    # "top":I
    :goto_1e0
    const/4 v13, 0x0

    move-object/from16 v0, p0

    invoke-direct {v0, v7, v8, v13}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto/16 :goto_1e

    .restart local v7    # "top":I
    :cond_1e8
    move v7, v3

    goto :goto_1e0

    .line 537
    .end local v5    # "performSingleTap":Z
    .end local v6    # "reverse":Z
    :cond_1ea
    if-eqz v10, :cond_1f4

    .end local v7    # "top":I
    :goto_1ec
    const/4 v13, 0x0

    move-object/from16 v0, p0

    invoke-direct {v0, v7, v8, v13}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->performFling(IFZ)V

    goto/16 :goto_1e

    .restart local v7    # "top":I
    :cond_1f4
    move v7, v3

    goto :goto_1ec

    .line 544
    .end local v2    # "action":I
    .end local v3    # "left":I
    .end local v4    # "negative":Z
    .end local v7    # "top":I
    .end local v8    # "velocity":F
    .end local v9    # "velocityTracker":Landroid/view/VelocityTracker;
    .end local v10    # "vertical":Z
    .end local v11    # "xVelocity":F
    .end local v12    # "yVelocity":F
    :cond_1f6
    const/4 v13, 0x0

    goto/16 :goto_7

    .line 462
    nop

    :pswitch_data_1fa
    .packed-switch 0x1
        :pswitch_4d
        :pswitch_32
        :pswitch_4d
    .end packed-switch
.end method

.method public open()V
    .registers 2

    .prologue
    .line 982
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->openDrawer()V

    .line 983
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->invalidate()V

    .line 984
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->requestLayout()V

    .line 986
    const/16 v0, 0x20

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->sendAccessibilityEvent(I)V

    .line 987
    return-void
.end method

.method public setOnDrawerCloseListener(Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerCloseListener;)V
    .registers 2
    .param p1, "onDrawerCloseListener"    # Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerCloseListener;

    .prologue
    .line 1107
    iput-object p1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerCloseListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerCloseListener;

    .line 1108
    return-void
.end method

.method public setOnDrawerOpenListener(Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerOpenListener;)V
    .registers 2
    .param p1, "onDrawerOpenListener"    # Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerOpenListener;

    .prologue
    .line 1097
    iput-object p1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerOpenListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerOpenListener;

    .line 1098
    return-void
.end method

.method public setOnDrawerScrollListener(Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;)V
    .registers 2
    .param p1, "onDrawerScrollListener"    # Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;

    .prologue
    .line 1118
    iput-object p1, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mOnDrawerScrollListener:Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer$OnDrawerScrollListener;

    .line 1119
    return-void
.end method

.method public toggle()V
    .registers 2

    .prologue
    .line 948
    iget-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mExpanded:Z

    if-nez v0, :cond_e

    .line 949
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->openDrawer()V

    .line 953
    :goto_7
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->invalidate()V

    .line 954
    invoke-virtual {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->requestLayout()V

    .line 955
    return-void

    .line 951
    :cond_e
    invoke-direct {p0}, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->closeDrawer()V

    goto :goto_7
.end method

.method public unlock()V
    .registers 2

    .prologue
    .line 1145
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/slidingdrawer/ZMSlidingDrawer;->mLocked:Z

    .line 1146
    return-void
.end method
